import Vue, {createApp} from 'vue';
import App from './App'
import router from './router'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import store from "@/store"
import 'styles/reset.css'
import 'styles/border.css'
import fastClick from 'fastclick'
import 'styles/iconfont.css'
import 'swiper/dist/css/swiper.css'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import axios from "axios";

axios.defaults.baseURL = process.env.VUE_APP_SERVER

fastClick.attach(document.body)
// Vue.use(VueAwesomeSwiper)

const cors = require('koa2-cors');

createApp(App).use(router).use(store).use(VueAwesomeSwiper)
    .use(Antd).use(cors).mount('#app')

console.log('环境：' + process.env.NODE_ENV)
console.log('服务端：' + process.env.VUE_APP_SERVER)
